// import { createLogger } from 'vite'; //不能加这个会出现Invalid left-hand side in assignment
import { createApp } from 'vue'
// import App from './App.vue'
// import App from './01_组件拆分和嵌套/App.vue'
// import App from './03_组件通信_子传父(自定义事件)/App.vue'
// import App from './04_商品切换tab/App.vue'
// import App from './05_组件通信_provide和inject/App.vue'
// import App from './06_作用域插槽/App.vue'
// import App from './07_组件切换/App.vue'
// import App from './09_异步组件的使用/App.vue'
// import App from './10_$ref的使用/App.vue'
// import App from './11_$root和$parent的使用获取上级组件信息/App.vue'
// import App from './12_组件生命周期/App.vue'
// import App from './13_组件的v-model/App.vue'
// import App from './14_组件的v-model绑定多个属性值/App.vue'
import App from './15_mixin混入/App.vue'



// import("./09_异步组件的使用/utils/math").then(({sum})=>{    //从导入的utils拿到sum函数
//     console.log(sum(20,30));
// });
const app = createApp(App)
// 全局混入
app.mixin({
    created(){
        console.log("global mixin created");
    }
})
app.mount('#app')
